--- import MicroBlog from "@components/templates/MicroBlog.astro"; import Base from "@layouts/Base.astro"; import PrevNext from "@layouts/PrevNext.astro"; import { fromPosts, isMicro } from "@lib/collection/helpers"; import { identity } from "@utils/anonymous"; import type { GetStaticPaths, InferGetStaticParamsType, InferGetStaticPropsType, } from "astro"; export const getStaticPaths = (async ({ paginate }) => { const micros = await fromPosts(isMicro, identity); return paginate(micros, { pageSize: 20 }); }) satisfies GetStaticPaths; export type Params = InferGetStaticParamsType; export type Props = InferGetStaticPropsType; const { page } = Astro.props; const { prev, next, first, last } = page.url; ---

Página {page.currentPage}

    {page.data.map((micro) =>
  • )}